package p270jp.pxv.android.legacy.model;

import android.database.sqlite.SQLiteDatabase;
import java.util.Map;
import p104de.greenrobot.dao.AbstractDao;
import p104de.greenrobot.dao.AbstractDaoSession;
import p104de.greenrobot.dao.identityscope.IdentityScopeType;
import p104de.greenrobot.dao.internal.DaoConfig;

/* renamed from: jp.pxv.android.legacy.model.DaoSession */
/* loaded from: classes2.dex */
public class DaoSession extends AbstractDaoSession {
    private final BrowsingHistoryDao browsingHistoryDao;
    private final DaoConfig browsingHistoryDaoConfig;
    private final EmojiDao emojiDao;
    private final DaoConfig emojiDaoConfig;
    private final LikedWorkDao likedWorkDao;
    private final DaoConfig likedWorkDaoConfig;
    private final SearchHistoryDao searchHistoryDao;
    private final DaoConfig searchHistoryDaoConfig;

    public DaoSession(SQLiteDatabase sQLiteDatabase, IdentityScopeType identityScopeType, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig> map) {
        super(sQLiteDatabase);
        DaoConfig daoConfig = new DaoConfig(map.get(LikedWorkDao.class));
        this.likedWorkDaoConfig = daoConfig;
        daoConfig.m7273a(identityScopeType);
        DaoConfig daoConfig2 = new DaoConfig(map.get(BrowsingHistoryDao.class));
        this.browsingHistoryDaoConfig = daoConfig2;
        daoConfig2.m7273a(identityScopeType);
        DaoConfig daoConfig3 = new DaoConfig(map.get(SearchHistoryDao.class));
        this.searchHistoryDaoConfig = daoConfig3;
        daoConfig3.m7273a(identityScopeType);
        DaoConfig daoConfig4 = new DaoConfig(map.get(EmojiDao.class));
        this.emojiDaoConfig = daoConfig4;
        daoConfig4.m7273a(identityScopeType);
        LikedWorkDao likedWorkDao = new LikedWorkDao(daoConfig, this);
        this.likedWorkDao = likedWorkDao;
        BrowsingHistoryDao browsingHistoryDao = new BrowsingHistoryDao(daoConfig2, this);
        this.browsingHistoryDao = browsingHistoryDao;
        SearchHistoryDao searchHistoryDao = new SearchHistoryDao(daoConfig3, this);
        this.searchHistoryDao = searchHistoryDao;
        EmojiDao emojiDao = new EmojiDao(daoConfig4, this);
        this.emojiDao = emojiDao;
        registerDao(LikedWork.class, likedWorkDao);
        registerDao(BrowsingHistory.class, browsingHistoryDao);
        registerDao(SearchHistory.class, searchHistoryDao);
        registerDao(Emoji.class, emojiDao);
    }

    public void clear() {
        this.likedWorkDaoConfig.f12170j.clear();
        this.browsingHistoryDaoConfig.f12170j.clear();
        this.searchHistoryDaoConfig.f12170j.clear();
        this.emojiDaoConfig.f12170j.clear();
    }

    public BrowsingHistoryDao getBrowsingHistoryDao() {
        return this.browsingHistoryDao;
    }

    public EmojiDao getEmojiDao() {
        return this.emojiDao;
    }

    public LikedWorkDao getLikedWorkDao() {
        return this.likedWorkDao;
    }

    public SearchHistoryDao getSearchHistoryDao() {
        return this.searchHistoryDao;
    }
}
